﻿@{
    ViewBag.Title = "Index";
}



@model Nop.Admin.Models.ShowCase.ShowCaseListModel


@if (Model != null)
{
    <div class="t-grid">
        
        <table style="border: 1px solid black ">
            <thead class="t-grid-header">
                
            <tr>
                <th>Title</th>
                <th>Products</th>
                <th></th>
            </tr>
            </thead>
            @foreach (var item in Model.ShowCaseListItemModels)
            {
                <tr>
                    <td>
                        @item.Title
                    </td>
                    <td>
                        <ol>
                            
                        @foreach (var p in item.ShowCaseListItemProductModels.Select(t => t.Product).ToList())
                        {
                            <li>@p.Name</li>
                        }
                        </ol>
                    </td>
                    <td>
                        <a href="@Url.Action("Edit","ShowCase",new {Id=item.Id})">编辑</a>
                    </td>
                </tr>
            }
        </table>
    </div>
}